<?php

namespace app\api\model;

class ConfigModel extends BaseModel
{
    protected $pk = 'id';
    protected $table = 'hs_config';
    protected static $tableName = 'config';

    //获取配置值
    public static function getValue($name, $group)
    {
        return self::where('name', $name)->where('group', $group)->value('value');
    }
}